package com.chapter01exercise.homework04;

/**
 * @Author 小闽
 * @Date 2024/8/16 9:35
 * @PackageName: com.chapter01exercise.homework04
 * @ClassName: Employee
 * @Description: 员工类
 * @Version 1.0
 */
public class Employee {
    private String name;
    private double daily_salary;
    private int working_days;
    private double level;
    public Employee(String name, double daily_salary, int working_days, double level) {
        this.name = name;
        this.daily_salary = daily_salary;
        this.working_days = working_days;
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getDaily_salary() {
        return daily_salary;
    }

    public void setDaily_salary(double daily_salary) {
        this.daily_salary = daily_salary;
    }

    public int getWorking_days() {
        return working_days;
    }

    public void setWorking_days(int working_days) {
        this.working_days = working_days;
    }
    public double getLevel() {
        return level;
    }

    public void setLevel(double level) {
        this.level = level;
    }

    /**
     * 打印工资方法
     */
    public double print_salary(){
        return  daily_salary * working_days * level;
    }
}
